package com.shrimpcolo.share;

//public class Test {

//	public static void main(String[] args) {
//		Child c = new Child();
//	}
//}
//
//class Father {
//	public Father() {
//		System.out.println("父类无参构造函数");
//	}
//
//	public Father(String name) {
//		System.out.println("父类有参构造函数");
//	}
//}
//
//class Child extends Father {
//	public Child() {
//		this("dd");
//		System.out.println("子类无参构造函数");
//	}
//
//	public Child(String name) {
//		super("dd");
//		System.out.println("子类有参构造函数");
//	}
//}

class Person {
	String name = "person";

	public void shout() {
		System.out.print(name);
	}
}

class Student extends Person {
	String name = "student";
	String school = "school";
}

public class Test {
	public static void main(String[] args) {
		Person p = new Student();
		p.shout();
	}
}
